import { IsOptional, IsNumber, IsString, MaxLength } from 'class-validator';
import PaginationDto from '../../dtos/pagination.dto';

export class UpdatePayeeDto {
    @MaxLength(20)
    @IsString()
    @IsOptional()
    bank:string;

    @MaxLength(20)
    @IsString()
    @IsOptional()
    account:string;


    @MaxLength(10)
    @IsString()
    @IsOptional()
    payee:string;
}



export class WithdrawalPageDto extends PaginationDto {
    @IsNumber()
    @IsOptional()
    status:number;


    @IsNumber()
    @IsOptional()
    startTime:number;

    @IsNumber()
    @IsOptional()
    endTime:number;
}

